﻿/**
 * @Description 服务API文档JS
 *@Author  guoyanfei
 */
$(function () {
	$(".s_url").html(serviceUrl);
	$(".s_id").html(serviceId);

    //单表服务-分页查询服务
	$("#querySingleTB").children("a").attr("href",serviceUrl + "/business/singleServer/querySingleTB?serviceID="+serviceId+"")
								  .children("span").html(serviceUrl + "/business/singleServer/querySingleTB?serviceID="+serviceId+"");
    //单表服务-数据列查询服务
	$("#queryTableField").children("a").attr("href",serviceUrl + "/business/singleServer/queryTableField?serviceID="+serviceId+"")
									.children("span").html(serviceUrl + "/business/singleServer/queryTableField?serviceID="+serviceId+"");
    //单表服务-数据查询列查询服务
	$("#QueryField").children("a").attr("href",serviceUrl + "/business/singleServer/queryTableQueryField?serviceID="+serviceId+"")
							.children("span").html(serviceUrl + "/business/singleServer/queryTableQueryField?serviceID="+serviceId+"");
    //单表服务-数据显示列查询服务
	$("#queryShowField").children("a").attr("href",serviceUrl + "/business/singleServer/queryTableShowField?serviceID="+serviceId+"")
									.children("span").html(serviceUrl + "/business/singleServer/queryTableShowField?serviceID="+serviceId+"");

    //脚本查询服务-分页查询服务
	$("#multipleTableServer").children("a").attr("href",serviceUrl + "/business/multipleServer/multipleTableServer?serviceID="+serviceId+"")
									.children("span").html(serviceUrl + "/business/multipleServer/multipleTableServer?serviceID="+serviceId+"");

	//脚本查询服务-查询显示列服务
	$("#multipleShowField").children("a").attr("href",serviceUrl + "/business/multipleServer/selectShowFiled?serviceID="+serviceId+"")
										.children("span").html(serviceUrl + "/business/multipleServer/selectShowFiled?serviceID="+serviceId+"");

	//脚本查询服务-查询列查询服务
	$("#dataQueryField").children("a").attr("href",serviceUrl + "/business/multipleServer/selectQueryFiled?serviceID="+serviceId+"")
									.children("span").html(serviceUrl + "/business/multipleServer/selectQueryFiled?serviceID="+serviceId+"");


	//聚合查询服务-分页查询服务
	$("#polymerServerPreview").children("a").attr("href",serviceUrl + "/business/polymerServer/queryPolymerServer?serviceID="+serviceId+"")
		.children("span").html(serviceUrl + "/business/polymerServer/queryPolymerServer?serviceID="+serviceId+"");

	//聚合查询服务-查询显示列服务
	$("#polymerServerShowField").children("a").attr("href",serviceUrl + "/business/polymerServer/selectShowFiled?serviceID="+serviceId+"")
		.children("span").html(serviceUrl + "/business/polymerServer/selectShowFiled?serviceID="+serviceId+"");

	//聚合查询服务-查询列查询服务
	$("#polymerServerQueryField").children("a").attr("href",serviceUrl + "/business/polymerServer/selectQueryFiled?serviceID="+serviceId+"")
		.children("span").html(serviceUrl + "/business/polymerServer/selectQueryFiled?serviceID="+serviceId+"");

    //统计图表服务
    $("#tj_seviceUrl").html(serviceUrl + "/business/censusTab/getCensusTableing?serviceID="+serviceId+"");

    //主从表服务-分页查询主表数据服务
    $("#queryMasterTableList").children("a").attr("href",serviceUrl + "/business/extMasterServer/queryMasterTableList?serviceID="+serviceId+"")
    										 .children("span").html(serviceUrl + "/business/extMasterServer/queryMasterTableList?serviceID="+serviceId+"");

    //主从表服务-查询从表数据服务
    $("#querySlaveTBbyMasterID").children("a").attr("href",serviceUrl + "/business/extMasterServer/querySlaveTBbyMasterID?serviceID="+serviceId+"&guid=")
    											  .children("span").html(serviceUrl + "/business/extMasterServer/querySlaveTBbyMasterID?serviceID="+serviceId+"&guid=");

    //主从表服务-查询主表显示字段信息服务
    $("#queryTableShowField").children("a").attr("href",serviceUrl + "/business/extMasterServer/queryTableShowField?serviceID="+serviceId+"")
    										.children("span").html(serviceUrl + "/business/extMasterServer/queryTableShowField?serviceID="+serviceId+"");

    //主从表服务-主表查询字段信息服务
    $("#TableQueryField").children("a").attr("href",serviceUrl + "/business/extMasterServer/queryTableQueryField?serviceID="+serviceId+"")
    								 .children("span").html(serviceUrl + "/business/extMasterServer/queryTableQueryField?serviceID="+serviceId+"");

    //主从表服务-从表显示字段信息服务
    $("#DetailShowField").children("a").attr("href",serviceUrl + "/business/extMasterServer/queryTableDetailShowField?serviceID="+serviceId+"")
    								 .children("span").html(serviceUrl + "/business/extMasterServer/queryTableDetailShowField?serviceID="+serviceId+"");

    //主从表服务-查询主表主键字段服务
    $("#tablePrimaryKey").children("a").attr("href",serviceUrl + "/business/extMasterServer/queryMasterTablePrimaryKey?serviceID="+serviceId+"")
    								 .children("span").html(serviceUrl + "/business/extMasterServer/queryMasterTablePrimaryKey?serviceID="+serviceId+"");

    //单表编辑服务-单表新增服务
    $("#singleEditAdd").children("a").attr("href",serviceUrl + "/business/singleEditServer/singleAdd?serviceID="+serviceId+"&conQuery=")
    							 .children("span").html(serviceUrl + "/business/singleEditServer/singleAdd?serviceID="+serviceId+"&conQuery=");

    //单表编辑服务-单表修改服务
    $("#singleEditUpdate").children("a").attr("href",serviceUrl + "/business/singleEditServer/singleUpdate?serviceID="+serviceId+"&conQuery=")
    							.children("span").html(serviceUrl + "/business/singleEditServer/singleUpdate?serviceID="+serviceId+"&conQuery=");

    //单表编辑服务-单表删除服务
    $("#singleEditDel").children("a").attr("href",serviceUrl + "/business/singleEditServer/singleDel?serviceID="+serviceId+"&primaryKeys=")
    							.children("span").html(serviceUrl + "/business/singleEditServer/singleDel?serviceID="+serviceId+"&primaryKeys=");

    //单表编辑服务-下载数据模板
	$("#downloadTemplate").children("a").attr("href",serviceUrl + "/business/singleEditServer/downloadDataTemplate?serviceID="+serviceId+"")
		.children("span").html(serviceUrl + "/business/singleEditServer/downloadDataTemplate?serviceID="+serviceId+"");

	//单表编辑服务-导出数据服务
    $("#exportData").children("a").attr("href",serviceUrl + "/business/singleEditServer/exportData?serviceID="+serviceId+"")
        .children("span").html(serviceUrl + "/business/singleEditServer/exportData?serviceID="+serviceId+"");

    //单表编辑服务-查询单表编辑主键字段
    $("#singlePrimaryKey").children("a").attr("href",serviceUrl + "/business/singleEditServer/seletePrimaryKey?serviceID="+serviceId+"")
        .children("span").html(serviceUrl + "/business/singleEditServer/seletePrimaryKey?serviceID="+serviceId+"");

    //单表编辑服务-导入Excel服务


    //资源树查询服务-查询所有数据
    $("#resourceUrl").children("a").attr("href",serviceUrl + "/business/execute/selectTreeConfig?serviceID="+serviceId+"&conQuery=")
    						 .children("span").html(serviceUrl + "/business/execute/selectTreeConfig?serviceID="+serviceId+"&conQuery=");

    //资源树查询服务-懒加载数据
    $("#resourceLazyUrl").children("a").attr("href",serviceUrl + "/business/execute/getPartTreeConfig?serviceID="+serviceId+"&conQuery=")
    								.children("span").html(serviceUrl + "/business/execute/getPartTreeConfig?serviceID="+serviceId+"&conQuery=");
    //资源树查询服务-查询列服务
    $("#treeQueryField").children("a").attr("href",serviceUrl + "/business/execute/selectTreeColumn?serviceID="+serviceId+"")
    							   .children("span").html(serviceUrl + "/business/execute/selectTreeColumn?serviceID="+serviceId+"");

    //报表服务-预览服务
	$("#reportView").children("a").attr("href",serviceUrl + "/business/reportServer/reportView?serviceID="+serviceId+"")
								  .children("span").html(serviceUrl + "/business/reportServer/reportView?serviceID="+serviceId+"");
	//报表服务-导出服务
	$("#reportExport").children("a").attr("href",serviceUrl + "/business/reportServer/reportExport?serviceID="+serviceId+"")
								  .children("span").html(serviceUrl + "/business/reportServer/reportExport?serviceID="+serviceId+"");
	//报表服务-条件参数查询服务
	$("#reportParam").children("a").attr("href",serviceUrl + "/business/reportServer/queryReportQueryParams?serviceID="+serviceId+"")
	  .children("span").html(serviceUrl + "/business/reportServer/queryReportQueryParams?serviceID="+serviceId+"");

	//全文检索服务-检索查询
    $("#searchServices").children("a").attr("href",serviceUrl + "/business/searchServer/seachData?serviceID="+serviceId+"")
        .children("span").html(serviceUrl + "/business/searchServer/seachData?serviceID="+serviceId+"");

    //全文检索服务-检索查询关键字代码高亮
    $("#searchServicesHight").children("a").attr("href",serviceUrl + "/business/searchServer/seachDataHighlight?serviceID="+serviceId+"")
        .children("span").html(serviceUrl + "/business/searchServer/seachDataHighlight?serviceID="+serviceId+"");

    //全文检索服务-检索文档查询服务
    $("#searchDocServices").children("a").attr("href",serviceUrl + "/business/searchServer/seachDocData?serviceID="+serviceId+"")
        .children("span").html(serviceUrl + "/business/searchServer/seachDocData?serviceID="+serviceId+"");

    //全文检索服务-查询检索热词服务
    $("#searchHotword").children("a").attr("href",serviceUrl + "/business/searchServer/seachHotword?serviceID="+serviceId+"")
        .children("span").html(serviceUrl + "/business/searchServer/seachHotword?serviceID="+serviceId+"");


})
